import { getCurrentInstance } from 'vue'
/**
 * @return {useContext}
 * **/
const useContext = () => {
  const { appContext, proxy } = getCurrentInstance()!
  const context = appContext.config.globalProperties
  if (proxy && context) {
    return { context, proxy }
  }
}
export default useContext
